package com.example.demo.LeetCode.list;

public class ListNode {
    public int val;
    public ListNode next;
    public ListNode random;

    ListNode() {
    }

   public ListNode(int val) {
        this.val = val;
    }

    ListNode(int val, ListNode next) {
        this.val = val;
        this.next = next;
    }

    ListNode(int val, ListNode next,ListNode random) {
        this.val = val;
        this.next = next;
        this.random = random;
    }
}
